# Contributor: psykose <alice@ayaya.dev>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xiccd
pkgver=0.3.0_git20211219
_pkgrev=b51882079dabd4025eefbf89f58bd18e3e63b769
pkgrel=1
pkgdesc="X Color Profile Daemon"
url="https://github.com/agalakhov/xiccd"
arch="all !s390x !riscv64" # colord
options="!check" # no tests
license="GPL-3.0-or-later"
depends="
	colord
	polkit
	"
makedepends="
	autoconf
	automake
	colord-dev
	glib-dev
	libx11-dev
	libxrandr-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$_pkgrev.tar.gz::https://github.com/agalakhov/xiccd/archive/$_pkgrev.tar.gz"
builddir="$srcdir/$pkgname-$_pkgrev"

prepare() {
	default_prepare
	aclocal
	autoconf
	automake --add-missing --foreign --force --copy
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	# makefiles do not respect sysconfdir...
	make sysconfigdir=/etc DESTDIR="$pkgdir" install
}

sha512sums="
7f0592cd7be245e465b80d39dc4f21511e73e2b83881c318bd425e1bc4b576df2b1c7ba588c0459d9bd44aa67f2e454f507d130e4ef90243b1a54870fd19f51d  xiccd-b51882079dabd4025eefbf89f58bd18e3e63b769.tar.gz
"
